var app = angular.module('ZJPC');
app.controller('TrackController', ['$scope','$state','$rootScope','$stateParams','CesiumService',TrackController]);

function TrackController($scope,$state,$rootScope,$stateParams,CesiumService) {
	$scope.$on('detaildata',function(e,data){
		if(data.track!=undefined){
			$scope.trackList = data.track;
		}

	})
	if($stateParams.datag!=null){ $scope.trackList = $stateParams.datag.track;}
/*	$scope.trackList = [
		{
			position:'18号宿舍楼二',
			passTime:'2017-10-19 22:18:17'
		},
		{
			position:'南旭生活超市',
			passTime:'2017-10-19 21:17:16'
		},
		{
			position:'南旭生活超市',
			passTime:'2017-10-19 21:17:16'
		},
		{
			position:'南旭生活超市',
			passTime:'2017-10-19 21:17:16'
		}
	]*/
}